/**
 \* Created with IntelliJ IDEA.
 \* @author: walter_long
 \* @date: 2019/9/17
 \* @filename: api_questionnaire
 \* Description:
 \*/

import * as API from './'

export default {
    listQuestionnairesByPage: params => API.GET('/questionnaire/list', params),
    deleteQuestionnaire: params => API.POST(`/questionnaire/delete`, params),
    issueQuestionnaire: params => API.POST(`/questionnaire/issue`, params),
    newQuestionnaire: params => API.POST('/questionnaire/new', params),
    getQuestionnaire: params => API.GET('/questionnaire/get/' + params.id, params),
    deleteDimensionality: params => API.DELETE('/questionnaire/delete/dimension/' + params.id, params),
    deleteSingleChoiceQuestion: params => API.DELETE('/questionnaire/delete/single/' + params.id, params),
    deleteFillUp: params => API.DELETE('/questionnaire/delete/fill/' + params.id, params),
    deleteChoice: params => API.DELETE('/questionnaire/delete/choice/' + params.id, params),
    uploadQuestionnaire: params => API.POST('/questionnaire/upload', params),
    copyQuestionnaire: params => API.POST('/questionnaire/copy', params),
}
